package com.itheima.chapter10.thread.demo1;
//继承Thread类实现多线程
public class Demo {
    public static void main(String[] args) {
        MyThread my =new MyThread();
        MyThread my1 =new MyThread();
        //my.run();
        //只是调用run方法
        my.start();
        my1.start();
        //多线程交替执行
    }
}
